/*
 * @Author: qwlbwm 18370818801qwl./
 * @Date: 2023-09-06 09:12:16
 * @LastEditors: qwlbwm 18370818801qwl./
 * @LastEditTime: 2023-09-25 21:11:14
 * @FilePath: \checc-business-module-web-kgpt-dev\src\api\examineManage.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
import { ObjectType, ResponseDataPromise } from 'typings/interfaces'
import * as proxy from '@/constants/proxy'
// import { Pagination } from '@/components/Records/types'
// import axios from 'axios'
// import { getToken } from '@/utils/auth'
export interface IndexListParams extends ObjectType {
  param?: string
  type: string //1中交2中资
}

// export const superIndexSdBanklistRequests = (
//   pagination: Omit<Pagination, 'total'>,
//   data: Params
// ): ResponseDataPromise<ObjectType> =>
//   request({
//     url: proxy.CHECC_API_CMS + '/rm-repair-acceptance/road',
//     method: 'post',
//     data,
//     params: pagination,
//   })

export const superIndexSdBanklistRequest = (
  data: IndexListParams
): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-bank/list',
    method: 'post',
    data,
  })
export const deleteStandardIndexRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-bank/delete',
    method: 'post',
    data,
  })
export const addStandardIndexRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-bank/insert',
    method: 'post',
    data,
  })
export const editStandardIndexRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-bank/update',
    method: 'post',
    data,
  })
export const scoreManDetailRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-compose-item/detail',
    method: 'post',
    data,
  })
export const updateScoreRuleRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-compose-item/updateScoreRule',
    method: 'post',
    data,
  })
export const deleteItemSetRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-compose-item-set/delete',
    method: 'post',
    data,
  })
export const insertItemSetRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-compose-item-set/insert',
    method: 'post',
    data,
  })
export const updateItemSetRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-compose-item-set/update',
    method: 'post',
    data,
  })
export const getZjAnnuallsitRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/pageList',
    method: 'post',
    data,
  })
export const addZjAnnualRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/insert',
    method: 'post',
    data,
  })
export const editZjAnnualRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/update',
    method: 'post',
    data,
  })
export const openExamineRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/openExamine',
    method: 'post',
    data,
  })
export const backDraftRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/backDraft',
    method: 'post',
    data,
  })
export const endExamineRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/endExamine',
    method: 'post',
    data,
  })
export const updateScoreRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/updateScore',
    method: 'post',
    data,
  })
export const zjIndexlistRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/list',
    method: 'post',
    data,
  })
export const annualDetailRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/detail',
    method: 'post',
    data,
  })
export const insertzzAnnualRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/insert',
    method: 'post',
    data,
  })
export const editzzAnnualRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/update',
    method: 'post',
    data,
  })
export const zzAnnualpagelistRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/pageList',
    method: 'post',
    data,
  })
export const lockAnnualExamineRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/lock',
    method: 'post',
    data,
  })
export const unlockAnnualExamineRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/unlock',
    method: 'post',
    data,
  })
export const delAnnualExRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/delete',
    method: 'post',
    data,
  })
export const delAnnualzjExRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/delete',
    method: 'post',
    data,
  })
export const createPlanRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/producePlan',
    method: 'post',
    data,
  })
export const insertZjAannualRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/insert',
    method: 'post',
    data,
  })
export const editZjAannualRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/update',
    method: 'post',
    data,
  })
export const ZjAannualSetRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-compose-item/detail',
    method: 'post',
    data,
  })
export const zjAnSetSRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-compose-item/updateScoreRule',
    method: 'post',
    data,
  })
export const insertZjAnSetequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-compose-item-set/insert',
    method: 'post',
    data,
  })
export const updateZjAnSetequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-compose-item-set/update',
    method: 'post',
    data,
  })
export const deleteZjAnSetequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-compose-item-set/delete',
    method: 'post',
    data,
  })
export const getZzindexListRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-bank/list',
    method: 'post',
    data,
  })
export const zzAnnualDetailRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/detail',
    method: 'post',
    data,
  })
export const saveSelfEvaluateRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/saveSelfEvaluate',
    method: 'post',
    data,
  })
export const saveQualityEvaluateRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/saveQualityEvaluate',
    method: 'post',
    data,
  })

export const insertZzindexRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-bank/insert',
    method: 'post',
    data,
  })
export const updateZzindexRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-bank/update',
    method: 'post',
    data,
  })
export const zzannDetailRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-compose-item/detail',
    method: 'post',
    data,
  })
export const updateZzScoreRuleRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-compose-item/updateScoreRule',
    method: 'post',
    data,
  })

export const insertZzSetRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-compose-item-set/insert',
    method: 'post',
    data,
  })
export const updateZzSetRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-compose-item-set/update',
    method: 'post',
    data,
  })
export const deleteZzSetRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-compose-item-set/delete',
    method: 'post',
    data,
  })
export const deleteAnnZjRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/delete',
    method: 'post',
    data,
  })
export const deleteAnnZzRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-bank/delete',
    method: 'post',
    data,
  })
export const checkSelfEvaluateRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/checkSelfEvaluate',
    method: 'post',
    data,
  })
export const checkQualityEvaluateRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/checkQualityEvaluate',
    method: 'post',
    data,
  })
export const scoreDetailRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-annual-examine-index-score-detail/list',
    method: 'post',
    data,
  })
export const getListByAnnualIdRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/getListByAnnualId',
    method: 'post',
    data,
  })
export const geZjIndexDetailRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/detail',
    method: 'post',
    data,
  })
export const reviseZjScoreRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-annual-examine-index-score-detail/update',
    method: 'post',
    data,
  })
export const getCompanyListRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/getCompanyList',
    method: 'get',
    data,
  })
export const getCompanyListRequest1 = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/getCompanyList1',
    method: 'post',
    data,
  })
export const getCompanyListRequest2 = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/getCompanyList2',
    method: 'post',
    data,
  })
// export const getCompanyListRequest2 = (params = {}) =>
//   request.get(proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/getCompanyList2', { params })
export const exportStandardIndexRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-sd-bank/export',
    method: 'post',
    data,
    responseType: 'blob',
  })
export const exportzjIndexRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-bank/export',
    method: 'post',
    data,
    responseType: 'blob',
  })
export const exportzzIndexRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-bank/export',
    method: 'post',
    data,
    responseType: 'blob',
  })
export const exportzzAnnualRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-index-annual-examine/export',
    method: 'post',
    data,
    responseType: 'blob',
  })
export const exportZjScoreRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/super-annual-examine-index-score-detail/export',
    method: 'post',
    data,
    responseType: 'blob',
  })
export const exportZzAnnulRequest = (data: ObjectType): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CHECC_API_CMS + '/khgl/my-index-annual-examine/export',
    method: 'post',
    data,
    responseType: 'blob',
  })
